package com.uplooking.Proxy;

import java.lang.reflect.Method;

import org.springframework.aop.AfterAdvice;
import org.springframework.aop.AfterReturningAdvice;
import org.springframework.stereotype.Service;

@Service("AfterAdv")
public class AfterAdv implements AfterReturningAdvice{
	/**
	* @param returnValue
	*             被代理类方法的返回值
	* @param method
	*             被代理类方法
	* @param args
	*             被代理类方法参数
	* @param target
	*            代理对象
	*/
	@Override
	public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
		
		
		System.out.println("拿利润分成");
		System.out.println("返回值："+returnValue);
		System.out.println(method.getName()+"  "+args[0]+"  "+target);
		
	}

}
